Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to load app props from AWS Parameter Store #93

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

rpoet-jh
Copy link
Contributor

@rpoet-jh rpoet-jh commented Oct 7, 2024

This PR adds the option to load application properties defined in application.yaml from and AWS Parameter Store.

The PR contains the following changes:

  • Rename PASS_CORE_BACKEND_USER and PASS_CORE_BACKEND_PASSWORD to PASS_CORE_USER and PASS_CORE_PASSWORD respectively. This will set up usage of these by other services/data loaders in PASS.
  • Add spring AWS Parameter Store dep to implement app config environment integration with param store.

The way it works is by using the spring.config.import to specify to load app props from the AWS parameter store. See the AwsParamStoreConfigTest.properties method for an example.

https://docs.awspring.io/spring-cloud-aws/docs/3.0.0/reference/html/index.html#spring-cloud-aws-parameter-store

Note that this PR needs to be approved and merged before the other PR in pass-support. This is because of the pass core user/password env var name change.

To be reusable by other PASS services
@rpoet-jh rpoet-jh requested a review from markpatton October 7, 2024 18:00
@rpoet-jh rpoet-jh self-assigned this Oct 7, 2024
@rpoet-jh
Copy link
Contributor Author

rpoet-jh commented Oct 7, 2024

The acceptance tests are failing because pass-docker needs to be updated to use the new pass core user env names. I think this is a case where we will have to merged one of the PRs first to get the other to pass. I'd say to merge this one first, then we can re-run the pass-docker PR to ensure it works.

Copy link
Contributor

@markpatton markpatton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. As mentioned pass-documentation needs to be updated wrt the env variable change.

@rpoet-jh rpoet-jh merged commit dfe0b06 into main Oct 8, 2024
1 of 2 checks passed
@rpoet-jh rpoet-jh deleted the rdp-1046-paramstore-config branch October 16, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants